package com.my.study.anno.driven.factory;

import com.my.study.anno.bean.Dog;
import org.springframework.beans.factory.FactoryBean;

/**
 * @author Carlos
 * @version 1.0
 * @Description Dog的工厂Bean
 * @date 2021/11/23 8:18
 **/
public class DogFactoryBean implements FactoryBean<Dog> {


    @Override
    public Dog getObject() throws Exception {
        return new Dog();
    }

    @Override
    public Class<?> getObjectType() {
        return Dog.class;
    }
}
